﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Common.Dependency;
using Yto.EF.DbCtx;
using Yto.Unitwork;

namespace Yto.EF.UW
{
    public interface IEFTransaction
    {
        void Init(UnitworkOptions option);

        void Commit();

        void Dispose(ICtnResolver ctnResolver);

        DbContext GetDbContext<T>(string connStr, IDbResolver dbResolver)
            where T : DbContext;
    }
}
